#P=/usr/local/i586-mingw32/bin

CXX=i586-mingw32msvc-g++

#CFLAGS=-Wall -g `wx-config --cxxflags` -O3 -c
#LDFLAGS=`wx-config --libs`

#CFLAGS=-Wall -g `wx-config --host=i586-mingw32msvc --cxxflags` -O3 -c
#LDFLAGS=`wx-config --host=i586-mingw32msvc --libs`

CFLAGS=-Wall -g `/usr/i586-mingw32msvc/bin/wx-config --static --cxxflags --prefix=/usr/i586-mingw32msvc` -O3 -c
LDFLAGS=`/usr/i586-mingw32msvc/bin/wx-config --static --libs --prefix=/usr/i586-mingw32msvc`

#-Wl,--subsystem,windows -mwindows -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -DSTRICT -DHAVE_W32API_H -D__WXMSW__ -D__WINDOWS__
#-lpng -ljpeg -lzlib -ltiff -lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lodbc32 -lwsock32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid

SOURCES=../main.cpp ../muut.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=jukumagic.exe

all: jukumagic.exe

#jukumagic: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(CXX) $(OBJECTS) $(LDFLAGS) -o $(EXECUTABLE)

.cpp.o:
	$(CXX) $(CFLAGS) $< -o $@

clean:
	rm -f $(OBJECTS) $(EXECUTABLE)

